/**
 * 导航,首页
 */ 
import React,{Component} from 'react';
import Tabbar from './components/Tabbar';
import MRouter from './route/IndexRouter';
import {autorun} from 'mobx'
import store from './mobx/store';
class Zhuye extends Component{
  state={
    isShow:true
  }
  componentDidMount(){
    autorun(()=>{
      console.log("状态被改变",store.isTabbarShow)
      this.setState({
        isShow:store.isTabbarShow
      })
    })
  }
  render() {
    return (  
      <div>
        <MRouter>
          {this.state.isShow&&<Tabbar></Tabbar>}
        </MRouter>
      </div>
    );
  };
};
export default Zhuye;
